package com.imooc.spikesystem.config.redis;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wy
 */
@Component
@Data
public class RedisConfig {

    @Value("${spring.redis.host}")
    public String host;

    @Value("${spring.redis.port}")
    public int port;

    @Value("${spring.redis.timeout}")
    public int timeout;

    @Value("${spring.redis.jedis.pool.max-wait}")
    public int maxWait;

    @Value("${spring.redis.jedis.pool.max-idle}")
    public int maxIdle;

    @Value("${spring.redis.jedis.pool.max-total}")
    public int maxTotal;

}
